/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.pay.model;

import com.yunhoo.base.model.CostItem;
import com.yunhoo.sys.util.common.LoginParam;
import java.util.Date;

public class BaseFeeItem {

    private String number;//单据编号
    private int rownumber;//表体行号
    private CostItem item = new CostItem(); //费用项目
    private String feeDesc = "";//费用描述
    private Double quantityDesc = null;//数量描述
    private Date beginDate  = new Date();//开始日期
    private Date endDate = new Date();//结束日期
    private String startLocation = "";//出发地
    private String targetLocation = "";//目的地
    private Double quantity = null;//天数
    private Double price = null;//
    private String unit = "";//计量单位
    private Double amount = null;
    private Double stdAmount = null;//定额
    private Double overRate = null;//超额比率;
    private Double ratio = null;//系数(报销)
    private Double vouAmount = null;//单据金额
    private Double payAmount = null;//报销金额
    private String memo = "";//备注
    private String orgCode = "";

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Date getBeginDate() {
//        if (beginDate == null) {
//            Calendar cal = Calendar.getInstance();
//            cal.set(Calendar.HOUR_OF_DAY, 8);
//            cal.set(Calendar.MINUTE, 0);
//            beginDate = cal.getTime();
//        }
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
//        if (endDate == null) {
//            Calendar cal = Calendar.getInstance();
//            cal.set(Calendar.HOUR_OF_DAY, 20);
//            cal.set(Calendar.MINUTE, 0);
//            endDate = cal.getTime();
//        }
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getFeeDesc() {
        return feeDesc;
    }

    public void setFeeDesc(String feeDesc) {
        this.feeDesc = feeDesc;
    }

    public CostItem getItem() {
        return item;
    }

    public void setItem(CostItem item) {
        this.item = item;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Double getOverRate() {
        return overRate;
    }

    public void setOverRate(Double overRate) {
        this.overRate = overRate;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Double getQuantityDesc() {
        return quantityDesc;
    }

    public void setQuantityDesc(Double quantityDesc) {
        this.quantityDesc = quantityDesc;
    }

    public Double getRatio() {
        return ratio;
    }

    public void setRatio(Double ratio) {
        this.ratio = ratio;
    }

    public int getRownumber() {
        return rownumber;
    }

    public void setRownumber(int rownumber) {
        this.rownumber = rownumber;
    }

    public String getStartLocation() {
        return startLocation;
    }

    public void setStartLocation(String startLocation) {
        this.startLocation = startLocation;
    }

    public Double getStdAmount() {
        return stdAmount;
    }

    public void setStdAmount(Double stdAmount) {
        this.stdAmount = stdAmount;
    }

    public String getTargetLocation() {
        return targetLocation;
    }

    public void setTargetLocation(String targetLocation) {
        this.targetLocation = targetLocation;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Double getVouAmount() {
        return vouAmount;
    }

    public void setVouAmount(Double vouAmount) {
        this.vouAmount = vouAmount;
    }

    public String getOrgCode() {
        orgCode = LoginParam.getOrg().getCode().trim();
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }
}
